#include<bits/stdc++.h>
using namespace std;
 
int main(){ 
    int a,b;
    while(cin>>a>>b){
        if(a-b>1||b-a>1){
            if(a>=11||b>=11){
                cout<<"Game Over\n";
                continue;
            }
        }
        if(a+b<20){
            if((a+b)%4==0||(a+b)%4==1){
                cout<<"A\n";
            }else{
                cout<<"B\n";
            }
        }else{
            if((a+b)%2==0){
                cout<<"A\n";
            }else{
                cout<<"B\n";
            }
        }
    }
    return 0;
}
